﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace GameName1 
{
    class XnaAngryAlienDecorator : XnaAlienDecorator
    {
        public static Texture2D AlienExploding;

        private AngryAlien _angryAlien;
        public AngryAlienState State { get;  set; }

        public XnaAngryAlienDecorator(AngryAlien angryAlien)
        {
            _angryAlien = angryAlien;
        }

        public override Vector2 Velocity
        {
            get { return AngryAlien.Velocity; }
            set { AngryAlien.Velocity = value; }
        }

        public override Vector2 Position
        {
            get { return AngryAlien.Position; }
            set { AngryAlien.Position = value; }
        }

        public AngryAlien AngryAlien
        {
            get { return _angryAlien; }
        }

        public override void HandleHit()
        {
            AngryAlien.HandleHit();
        }

        public override void Move()
        {
            AngryAlien.Move();
        }
    }
}
